package com.service.client.web;

import com.service.core.com.service.core.service.PersonService;
import com.service.core.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller
 *
 * @author humdeef
 * @date 2018/12/4
 */
@RestController
public class PersonController {

    @Autowired
    private PersonService personService;

    @RequestMapping("/person/{id}")
    public Person person(@PathVariable Long id) {
        return personService.person(id);
    }
}
